<template>
  <tab-bar>
    <tab-bar-item url="/home" text="主页">
      <img slot="img-on" src="./img/home-o.png" />
      <img slot="img" src="./img/home.png" />
    </tab-bar-item>
    <tab-bar-item url="/category" text="分类">
      <img slot="img-on" src="./img/category-o.png" />
      <img slot="img" src="./img/category.png" />
    </tab-bar-item>
    <tab-bar-item url="/cart" text="购物车">
      <img slot="img-on" src="./img/cart-o.png" />
      <img slot="img" src="./img/cart.png" />
    </tab-bar-item>
    <tab-bar-item url="/my" text="我的">
      <img slot="img-on" src="./img/my-o.png" />
      <img slot="img" src="./img/my.png" />
    </tab-bar-item>
  </tab-bar>
</template>

<script>
import TabBarItem from "./TabBarItem.vue";
import TabBar from "./TabBar";

export default {
  name: "index",
  components: {
    TabBar,
    TabBarItem,
  },
};
</script>

<style scoped></style>
